SQL moving average

join shbcf.ru